package com.pym.Contoller.Utils;

import lombok.Data;

@Data
public class R {
    private boolean flag;
    private Object Data;
    private String msg;


    public R(boolean flag, String msg) {
        this.flag = flag;
        this.msg = msg;
    }

    public R(String msg) {
        this.flag=false;
        this.msg = msg;
    }

    public R() {
    }

    public R(boolean flag) {
        this.flag = flag;
    }

    public R(boolean flag, Object data) {
        this.flag = flag;
        Data = data;
    }
}
